package com.ssww.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.ssww.dao.AboutOurDao;
import com.ssww.entity.AboutOur;
import com.ssww.service.AboutOurService;
/**
 * 
 * @author 
 *
 */
@Service
public class AboutOurServiceImpl implements  AboutOurService {
	@Resource
	private AboutOurDao aboutOurDao;
	
	@Transactional
	public AboutOur getAboutOurById(Integer id) {
		return aboutOurDao.getAboutOurById(id);
	}
	@Transactional
	public List<AboutOur> getAboutOurList() {
		return aboutOurDao.getAboutOurList();
	}
	@Transactional
	public int addAboutOur(AboutOur a) {
		aboutOurDao.addAboutOur(a);
		return 0;
	}
	@Transactional
	public int deleteAboutOur(int id) {
		aboutOurDao.deleteAboutOur(id);
		return 0;
	}
	@Transactional
	public int updateAboutOur(AboutOur a, int id) {
		aboutOurDao.updateAboutOur(a, id);
		return 0;
	}


}
